package com.runen.wnhz.runen.di.module;

import com.runen.wnhz.runen.presenter.Contart.PayContract;
import com.runen.wnhz.runen.presenter.model.PayModel;
import com.runen.wnhz.runen.service.PayApi;

import dagger.Module;
import dagger.Provides;

/**
 * 描述：
 * 作者： 天天童话丶
 * 时间： 2018/6/2.
 */

@Module
public class PayModule {

    public PayContract.View view;

    public PayModule(PayContract.View view) {
        this.view = view;
    }

    @Provides
    public PayContract.View provideView(){
        return view;
    }

    @Provides
    public PayModel provideHomedel(PayApi payApi){
        return new PayModel(payApi);
    }
}
